﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Azure;
using Microsoft.AspNetCore.Components.Web;
using VOL.Core.Utilities;
using VOL.Entity.DomainModels;
using VOL.Entity.DomainModels.EquipmentManage;
using VOL.SmartMecial.Dtos;

namespace VOL.SmartMecial.IServices.EquipmentManage
{
    public interface IEquipmentRecordService
    {
        /// <summary>
        /// 设备借还分页显示
        /// </summary>
        /// <param name="equipmentRecordDTO">查询条件</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">条数</param>
        /// <returns>返回</returns>
        Task<WebResponseContent> GetEquipmentRecord(EquipmentRecordDTO equipmentRecordDTO, int pageIndex, int pageSize);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="record">实体</param>
        /// <returns>返回</returns>
        Task<int> Add(EquipmentRecord record);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="record">实体</param>
        /// <returns>返回</returns>
        Task<int> Update(EquipmentRecord record);
        /// <summary>
        /// 同一个设备类型的设备编号不能被重复借出。
        /// </summary>
        /// <param name="equipmentNo">设备编号</param>
        /// <param name="equipmentType">设备类型</param>
        /// <returns>返回</returns>
        Task<WebResponseContent> CheckEquipmentStatus(string equipmentNo, string equipmentType);



    }
}

